package com.ssy.lingxi.member.merchant.model.vo.basic.request;

import com.ssy.lingxi.member.merchant.api.handler.annotation.MemberLevelRuleTypeAnno;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 业务管理平台查询会员升级规则时返回的VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-07-09
 */
public class LevelRuleVO implements Serializable {
    private static final long serialVersionUID = 6274988607227679918L;

    /**
     * 规则id
     */
    private Long id;

    /**
     * 规则类型枚举 1-交易 2-登录 3-评论
     */
    @NotNull(message = "规则Id要大于0")
    @MemberLevelRuleTypeAnno
    private Integer ruleTypeEnum;

    /**
     * 规则名称
     */
    @Size(max = 20, message = "规则名称最长20个字符")
    private String ruleName;

    /**
     * 规则说明
     */
    @NotBlank(message = "规则说明不能为空")
    @Size(max = 200, message = "规则说明最大200个字符")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getRuleTypeEnum() {
        return ruleTypeEnum;
    }

    public void setRuleTypeEnum(Integer ruleTypeEnum) {
        this.ruleTypeEnum = ruleTypeEnum;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
